package com.tongzhan.entity.religion;

import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 活动实体类
 * @author wn
 * @date 2020/07/16
 */
@Data
@Document(collection = "Activity")
public class Activity extends BaseModel {
    @PrimaryKey
    @Field("ActivityCode")
    private String activityCode;
    @Field("UserName")
    private String userName;
    @Field("RealName")
    private String realName;
    @Field("Number")
    private Long number;
    @Field("Title")
    private String title;
    @Field("Detail")
    private String detail;
    @Field("StreetCode")
    private String streetCode;
    @Field("StreetName")
    private String streetName;
    @Field("ReligionCode")
    private String religionCode;
    @Field("ReligionName")
    private String religionName;
    @Field("SiteCode")
    private String siteCode;
    @Field("SiteName")
    private String siteName;
    @Field("Picture")
    private String picture;
    @Field("StartTime")
    private LocalDate startTime;
    @Field("EndTime")
    private LocalDate endTime;
    @Field("CreateTime")
    private LocalDateTime createTime;
}
